package com.leyou.client;

import com.leyou.pojo.Spec_group;
import com.leyou.pojo.Spec_param;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@RequestMapping("spec")
public interface SpecClientServer {
    @RequestMapping("getparamsq")
    public List<Spec_param> getparamsq(@RequestParam("cid")Integer cid);

    @RequestMapping("getparams")
    public List<Spec_param> getparams(@RequestParam("cid")Integer cid);


    //通过第三级分类查询规格组
    @RequestMapping("groups/{cid}")
    public List<Spec_group> groups(@PathVariable("cid") Integer cid);


    //查询规格参数并且为通用规格
    @RequestMapping("fingParamByCidAndGeneric")
    public List<Spec_param> fingParamByCidAndGeneric(@RequestParam("id") Integer cid);

}
